package com.gongpingjialoan.activity.car;

import android.os.Bundle;
import android.text.TextUtils;

import com.gongpingjialoan.R;
import com.gongpingjialoan.activity.main.BaseActivity;

/**
 * Created by Administrator on 2015/11/20.
 */
public class NewCarAcitivity extends BaseActivity {


    private NewCarParametsFragment newCarParametsFragment;

    private String jsonString;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        isSendData = true;
        action = "detail_newConfig";
        setContentView(R.layout.new_car_layout);
        setTitle("新车配置");
        jsonString = getIntent().getStringExtra("json_data");
        String from = getIntent().getStringExtra("from");
        if (!TextUtils.isEmpty(jsonString)) {
            newCarParametsFragment = new NewCarParametsFragment();
            Bundle bundle = new Bundle();
            bundle.putString("json_data", jsonString);
            bundle.putString("from", from);
            newCarParametsFragment.setArguments(bundle);
            getSupportFragmentManager().beginTransaction().add(R.id.content, newCarParametsFragment).commit();
        }
    }
}
